package com.learnlogincheck.learnlogincheck.dao;

import org.apache.ibatis.annotations.*;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface tokenInterface {
    @Insert("insert into tocken (account,token,datetime) values(#{account},#{tocken},NOW())")
    int inTocken(@Param("account") String account, @Param("tocken") String tocken);
    @Select("select token FROM tocken where account=#{account}")
    String selectToken(@Param("account") String account);
    @Delete("delete from tocken where account=#{account}")
    int deTocken(@Param("account") String account);
}
